const express = require('express')
const router = express.Router()
const expressJoi = require('@escook/express-joi')
const {reg_login_schema} = require('../schema/user')
const user = require('./user/user')
router.post('/login',expressJoi(reg_login_schema),user.login)
router.post('/reguser',expressJoi(reg_login_schema),user.reguser)

module.exports = router